.class Lcom/estrongs/android/pop/view/FileExplorerActivity$u1;
.super Ljava/lang/Object;
.source "FileExplorerActivity.java"

# interfaces
.implements Lcom/estrongs/android/view/FileGridViewWrapper$b0;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/view/FileExplorerActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/view/FileExplorerActivity;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/view/FileExplorerActivity;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$u1;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/estrongs/fs/g;)V
    .locals 3

    .line 1
    instance-of v0, p1, Les/i40;

    if-eqz v0, :cond_0

    .line 2
    move-object v0, p1

    check-cast v0, Les/i40;

    invoke-virtual {v0}, Les/i40;->n()Lcom/estrongs/fs/g;

    move-result-object v0

    goto :goto_0

    :cond_0
    move-object v0, p1

    .line 3
    :goto_0
    instance-of v1, v0, Les/y10;

    if-eqz v1, :cond_1

    .line 4
    new-instance p1, Lcom/estrongs/android/ui/dialog/h;

    iget-object v1, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$u1;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    check-cast v0, Les/y10;

    invoke-direct {p1, v1, v0}, Lcom/estrongs/android/ui/dialog/h;-><init>(Landroid/app/Activity;Les/y10;)V

    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/h;->b()V

    return-void

    .line 5
    :cond_1
    instance-of v1, v0, Les/a20;

    if-eqz v1, :cond_2

    .line 6
    iget-object p1, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$u1;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->X()Lcom/estrongs/android/pop/utils/j;

    move-result-object p1

    check-cast v0, Les/a20;

    invoke-virtual {p1, v0}, Lcom/estrongs/android/pop/utils/j;->a(Les/a20;)V

    return-void

    .line 7
    :cond_2
    invoke-interface {v0}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/android/util/n0;->F(Ljava/lang/String;)Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v1, :cond_3

    .line 8
    iget-object p1, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$u1;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-static {p1, v0, v2}, Lcom/estrongs/android/pop/app/DownloaderActivity;->a(Landroid/app/Activity;Lcom/estrongs/fs/g;Z)V

    return-void

    .line 9
    :cond_3
    instance-of v1, v0, Les/i30;

    if-eqz v1, :cond_5

    const-string v1, "web_file_url"

    .line 10
    invoke-interface {v0, v1}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    if-eqz v1, :cond_5

    .line 11
    new-instance p1, Landroid/content/Intent;

    const-string v2, "android.intent.action.VIEW"

    invoke-direct {p1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 12
    invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-virtual {p1, v2}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    const-string v2, "intent_file_url"

    .line 13
    invoke-interface {v0, v2}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    if-eqz v0, :cond_4

    .line 14
    invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 15
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->R0()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    invoke-static {v0, p1}, Lcom/estrongs/android/pop/view/utils/c;->a(Landroid/content/Context;Landroid/content/Intent;)[Lcom/estrongs/android/pop/view/utils/c$a;

    move-result-object v0

    if-nez v0, :cond_4

    .line 16
    invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 17
    :cond_4
    iget-object v0, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$u1;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {v0, p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->startActivity(Landroid/content/Intent;)V

    return-void

    .line 18
    :cond_5
    instance-of v1, v0, Lcom/estrongs/fs/impl/adb/a;

    if-eqz v1, :cond_6

    .line 19
    new-instance p1, Lcom/estrongs/android/ui/dialog/e;

    iget-object v1, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$u1;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    check-cast v0, Lcom/estrongs/fs/impl/adb/a;

    invoke-direct {p1, v1, v0}, Lcom/estrongs/android/ui/dialog/e;-><init>(Landroid/app/Activity;Lcom/estrongs/fs/impl/adb/a;)V

    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/e;->a()V

    return-void

    .line 20
    :cond_6
    iget-object v0, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$u1;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->Z()Lcom/estrongs/android/view/FileGridViewWrapper;

    move-result-object v0

    instance-of v0, v0, Lcom/estrongs/android/view/CompressGridViewWrapper;

    if-eqz v0, :cond_7

    .line 21
    iget-object v0, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$u1;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->c(Lcom/estrongs/android/pop/view/FileExplorerActivity;Z)Z

    goto :goto_1

    .line 22
    :cond_7
    iget-object v0, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$u1;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->Z()Lcom/estrongs/android/view/FileGridViewWrapper;

    move-result-object v0

    instance-of v0, v0, Lcom/estrongs/android/ui/homepage/i;

    if-nez v0, :cond_8

    .line 23
    iget-object v0, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$u1;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->g0()Les/hy;

    move-result-object v1

    invoke-virtual {v1}, Les/hy;->c()I

    move-result v1

    invoke-static {v0, v1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a(Lcom/estrongs/android/pop/view/FileExplorerActivity;I)I

    .line 24
    iget-object v0, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$u1;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-static {v0, v2}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->c(Lcom/estrongs/android/pop/view/FileExplorerActivity;Z)Z

    .line 25
    :cond_8
    :goto_1
    iget-object v0, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$u1;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-interface {p1}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v1

    invoke-interface {p1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, v1, p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->b(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method
